package com.hua.array;

import java.util.Arrays;

public class ArrayDemo06 {
    public static void main(String[] args) {
        int[] a = {2,3,2,12,3,321,32123,21,231};
        System.out.println(Arrays.toString(a));
        Arrays.sort(a);
        printArr(a);
        System.out.println();
        System.out.println(Arrays.toString(a));

    }
    public static void printArr(int[] arr){
        for (int x:
             arr) {
            System.out.print(x+" ");
        }
    }
}
